package com.meowcook.controller;

import com.meowcook.common.AppResult;
import com.meowcook.service.IMemberService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-11-16
 * Time: 14:26
 */
@Slf4j
@Api(tags = "窗口成员接口")
@RestController
@RequestMapping("/members")
public class MembersController {

    @Resource
    private IMemberService memberService;


    public AppResult<ArrayList<Long>> getMembersId(Long sessionId) {
        return AppResult.success(memberService.selectMemberIdsBySessionId(sessionId));
    }

    public void addUncheckNum(Long userId, Long sessionId) {
        memberService.addUncheckNum(userId, sessionId);
    }
}
